import 'dart:ffi';

extension IntExt on int {

  ///判断状态码是否成功
  bool isHttpSuccess(){
    return this==0||this==200;
  }
}

extension Int2Ext on int? {

  ///判断状态码是否成功
  bool isHttpSuccess(){
    if(this==null){
      return false;
    }else{
      return this==0||this==200;
    }
  }
}